package com.dynamic.mybatis.core.datasource;

public class DynamicDataSourceHolder {
    public static ThreadLocal<Object> contextHolder = new ThreadLocal<>();

    public static void set(Object dataSourceKey) {
        contextHolder.set(dataSourceKey);
    }

    public static Object get() {
        return contextHolder.get();
    }

    public static void clear() {
        contextHolder.remove();
    }
}
